package com.ftf.tp.message.infrastructure.adapter.rpc;

import com.ftf.tp.blog.client.dto.ArticleDTO;
import com.ftf.tp.blog.client.facade.rpc.ArticleRpcFacade;
import com.ftf.tp.message.application.adapter.rpc.ArticleRpcAdapter;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @author tanghao
 * @date 2022/9/16
 */
@Service
public class ArticleRpcAdapterImpl implements ArticleRpcAdapter {

    @DubboReference
    public ArticleRpcFacade articleRpcFacade;


    @Override
    public ArticleDTO getArticleById(Long articleId) {
        return articleRpcFacade.getArticleById(articleId);
    }
}
